gusucode.com > 支持向量机工具箱 - LIBSVM OSU_SVM LS_SVM源码程序 > 支持向量机工具箱 - LIBSVM OSU_SVM LS_SVM\stprtool\generalp\erfc2.m

    function [y]=erfc2(x,m,d)
% ERFC2 Normal cumulative distribution function (cdf).
% [y]=erfc2(x,m,d)
% 
% ERFC2 computes normal cumulative distribution function (cdf)
%  using Matlab's function 'erfc'. The argument m is mean value
%  and d is stantard deviation. The computed vlaue is 
%
%  erfc2(x) = 1/(sqrt(2*pi)*d) * integral_{x}^{inf}exp(-(t-m)^2/(2*d^2) dt
%
% See also ERFC
%

% Statistical Pattern Recognition Toolbox, Vojtech Franc, Vaclav Hlavac
% (c) Czech Technical University Prague, http://cmp.felk.cvut.cz
% Modifications
%  27-Oct-2001, V. Franc

x2=(x-m)/(sqrt(2)*d);

y=erfc(x2)/2;

return;